< previous page page_298 next page >

Page 298
Tutorial 3
A Bool and Its Bitfields Are Soon Parted
BOOLEAN ALGEBRA
Now, there's a term guaranteed to sow panic in the heart of almost any non-programmer. And it's amazing how many Visual Basic programmers feel the same way. Don't worryyou may not realize it, but if you've read Tutorial 2, "Memory, Where It All Begins," you already know 90 percent of what you need for even the most advanced Win32 API work.
And if you don't remember much of your high school algebra, don't worry about that either. What little you need to know will be easy to cover in this short chapter, and it will open the door for you to understand everything from combinations of flag constants to how cursors work to conversion of certain complex C data structures.
If you're looking for a mysterious meaning for the word "Bool," you won't find one: Boolean algebra was named after a mathematician named George Boole.
Simple Boolean Operations
You are probably acquainted with the Visual Basic Boolean type. This type of variable can have either of two values: True or False. Hold that thoughtwe'll return to it later.

 
< previous page page_298 next page >